Skip to main content

globalNames

Type​

function

Summary​

Returns a list of declared global variables.

Syntax​

the globalNames
globalNames()

Description​

Use the globalNames function to determine which global|global variables are available, or to make sure a global variable name has not already been used before declaring it.

Global variables are created with the global command. They can be deleted with the delete variable command. All global|global variables that have been declared since the application was started up are included in the globalNames function, except any that have been explictly deleted.

Examples​

the globalNames
if "myGlob" is not among the items of the globalNames then global myGlob

Value​

NameTypeDescription

return

The globalNames function returns a list of all global variables, separated by commas.

command: global, delete variable

control structure: function

function: variableNames, localNames

glossary: declare, application, return, global

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?